﻿using System;
using System.Text;

namespace MyFinanceManager.Objects
{
    [Serializable]
    public class PostingRecord : AccountRecord
    {
        public string CategoryName { get; set; }
        public string SubCategoryName { get; set; }

        public override string ToString()
        {
            StringBuilder sb = new StringBuilder(base.ToString());

            sb.Append("Category: ");
            sb.AppendLine(this.CategoryName);
            sb.Append("Subcategory: ");
            sb.AppendLine(this.SubCategoryName);
            
            return sb.ToString();
        }
    }
}
